package com.bcx.crm.spring.aop.customAop;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * Created by ys on 2018/4/7.
 */
public class Main {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(AopConfig.class);

        DemoAnnotationService annotationService = context.getBean(DemoAnnotationService.class);
        DemoMethodService methodService = context.getBean(DemoMethodService.class);

        annotationService.add();
        methodService.add();

        context.close();

    }
}
